package cn.iocoder.yudao.module.hs.controller.admin.scan.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

@Schema(description = "管理后台 - 扫码手动调整 Request VO")
@Data
public class ScanManualAdjustReqVO {

    @Schema(description = "调整类型,1-合 2-拆")
    @NotNull(message = "调整类型不能为空")
    private Integer adjustType;

    @Schema(description = "托盘编码/RFID编码")
    @NotBlank(message = "托盘编码/RFID编码不能为空")
    private String code;

    @Schema(description = "调整的物料信息")
    @NotEmpty(message = "调整的物料信息不能为空")
    private List<AdjustMaterial> list;


    @Data
    public static class AdjustMaterial {

        @Schema(description = "产品码")
        private String materialCode;

        @Schema(description = "箱码")
        private String materialBoxCode;

        @Schema(description = "状态，1-在库 2-增加 3-减少")
        private Integer status;
    }
}
